From 1f180822ad3fe83fe293393ec175f14ded98f082 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 14 Sep 2015 13:39:19 +0200 Subject: [PATCH] x86/p2m: fix mismatched unlock Luckily, due to gfn_unlock() currently mapping to p2m_unlock(), this is only a cosmetic issue right now. Signed-off-by: Jan Beulich Reviewed-by: Wei Liu Reviewed-by: Andrew Cooper Reviewed-by: George Dunlap Release-acked-by: Wei Liu --- xen/arch/x86/mm/p2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index c4329d2afb..e1d930a0af 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -913,7 +913,7 @@ static int set_typed_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn, omfn = p2m->get_entry(p2m, gfn, &ot, &a, 0, NULL, NULL); if ( p2m_is_grant(ot) || p2m_is_foreign(ot) ) { - p2m_unlock(p2m); + gfn_unlock(p2m, gfn, 0); domain_crash(d); return -ENOENT; } -- 2.30.2